package com.market.quote.common;

/**
 * @author duweibin
 * @date 2024/4/22
 * @description common status code
 */
public enum CommonStatus {
    OK(0, "OK"),
    NOT_FOUND(404, "Not Found"),
    INTERNAL_SERVER_ERROR(500, "Internal Server Error"),
    ARGUMENT_ERROR(-1, "参数异常");

    private final int code;
    private final String message;

    CommonStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
